package interficie;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
/**
 * 
 * @deprecated
 *
 */
public class AbrirTarea extends JPanel {

	private CtrlInterficie controladorInterficie;
	private JButton l_home = new JButton("");
	/**
     * Creadora de la clase AbrirTarea
     */
	public AbrirTarea(CtrlInterficie controli) {
		controladorInterficie = controli;
		setBackground(new Color(0, 153, 255));
        setLayout(null);
        setBounds(100, 100, 668, 531);
        
        JLabel label = new JLabel("Volver");
        label.setHorizontalAlignment(SwingConstants.CENTER);
        label.setFont(new Font("Tahoma", Font.BOLD, 15));
        label.setBounds(548, 131, 55, 14);
        add(label);
        
        
        l_home.setIcon(new ImageIcon(MostrarGraphRecientes.class.getResource("/resources/home.png")));
        l_home.setOpaque(false);
        l_home.setContentAreaFilled(false);
        l_home.setBorderPainted(false);
        l_home.setBounds(548, 69, 56, 61);
        l_home.addActionListener(new ActionListener() {
        	public void actionPerformed(ActionEvent arg0) {
        		controladorInterficie.Volver();
        	}
        });
        
        add(l_home);
	}

}
